package com.buzz.middleware;

import org.springframework.beans.BeansException;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.data.redis.core.StringRedisTemplate;

import javax.annotation.Resource;

/**
 * @Author: LiBaoxuan
 * @CreateTime: 2025-04-13  14:43
 * @Description: TODO
 */
@SpringBootApplication
public class ProviderApplication implements ApplicationContextAware {

    @Resource
    private StringRedisTemplate stringRedisTemplate;

    private ApplicationContext applicationContext;

    public static void main(String[] args) {
        SpringApplication.run(ProviderApplication.class,args);
    }



    @Override
    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
        this.applicationContext = applicationContext;
    }
}
